home *** CD-ROM | disk | FTP | other *** search
- ¯ 3796
- ; .______ ____ ____________ ____ ___ ___.______ _______
- ; | _ \ / \\ ______ // \ / / / /| _ \ / __ /
- ; | | \ \ / /\ \\/ | | \// /\ \ / / / / | | \ \ / /_ \/
- ; | | \ \/ /__\ \ | | / /__\ \/ / / / | | \ \/ __/
- ; | |__/ /\ \ / / | | \ \ / /\ \___/ / | | / /\ \__/\
- ; |_______/ \__\/ / |__| \__\/ / \____/\__\ |__| /__/ \_____/
- ; /__/ /__/ 10 years in business 1996
- ;
- ; 2:201/303.8 90:1104/115.0 (Martin Haggbom)
- ;
- ; +46-(0)8-7782886 300->28.800bps USRobotics V-everything Modem
- ; BBS Server Atari TT030, 3.2GIG HD, CD-ROM Changer (7 discs)
- ; 6.0 of 8.1 GIG online, runs on RATSoft
- ;
- ; User Warner SCRIPT 0.50 for RATSoft Version 2.1 and higer versions
- ;
- ; This script cuts out the "Userpruge" log statistics from RATSoft.LOG
- ; and creates a list of users that are going to be deleted from the system
- ; in a few days (or deleted this night).
- ;
- ; e.g. let you logon.scp view the 'usr_warn.lst' file for the users
- ; when they are loging on your system, mey be some one of them know
- ; some one in the list and kan take contact with them and reminde
- ; them of that thers account is going to be deleted!
- ;
- ; Installing this SCRIPT
- ;
- ; 1. copy the script to your ratsoft text folder (x:\RATSOFT\TEXT\)
- ;
- ; 2. put this in you schedular so it will be executed onece a day
- ; (after midnight eg. 12:01am) or if you have some BATCH jobbs to add
- ; it to.
- ;
- ; The script will create a file named USR_WARN.LST in your TEXT folder
- ; (x:\RATSOFT\TEXT\USR_WARN.LST)
- ;
- ; 3. put this in your LOGON.SCP
- ;
- ; ENV "CM[SHOW:USR_WARN.LST]"
- ;
- ; or in your LOGON.TXT
- ;
- ; ENV "CM[SHOW:USR_WARN.LST]"
- ;
- ; Now is everything ready to run!
- ;
- DIM scrap$(50)
- DIM log$(50)
- DIM _date$(50)
- DIM dellist$(500)
- DIM warlst$(50)
- DIM c$(50)
- DIM ok#(20)
- DIM c#(20)
- DIM count#(20)
- DIM lcount#(20)
-
- _DATE$="%/% "+DATE$+" %/%"
- log$=config$(25)+"RATSOFT.LOG"
- OUT "{200}&57USER WARNER Version 0.50, by Martin Haggbom, Dataline System +46-(0)8-7782886 &50"
- IF EXIST (log$)=TRUE
- OUT "&58 RATSoft.LOG file Ok! &50{200}"
- ELSE IF EXIST (log$)=FALSE
- OUT "&60 RATSoft.LOG file don't exist! &50"
- EXIT
- ENDIF
-
- lcount#=0
- ok#=0
- c#=0
-
- OPEN(log$,input)
- REPEAT
- c#=c#+1
- scrap$=read$
- lcount#=LOC
- OUT " Line "+STR$(c#)+", LOC "+STR$(lcount#)+"";
- IF scrap$=_date$
- OUT "&59 Line "+STR$(c#)+" LOC "+STR$(lcount#)+">> "+scrap$+" &50"
- ok#=10
- ENDIF
- UNTIL ok#=10
- CLOSE
-
- count#=0
- ok#=0
- c#=0
-
- OPEN (log$,input)
- SEEK(lcount#)
- REPEAT
- scrap$=READ$
- count#=count#+1
- IF count#>6 AND MID$(scrap$,1,22)="* USRPURGE >> WARNING:"
- c#=22
- DO
- c$=MID$(scrap$,c#,2)
- EXIT IF c$=", "
- c#=c#+2
- LOOP
- dellist$=dellist$+CHR$(38)+"58 Warning: "+CHR$(38)+"50 "+MID$(scrap$,24,50)+"{200}"
- ENDIF
- IF count#>6 AND MID$(scrap$,1,22)="* USRPURGE >> DELETED:"
- c#=22
- DO
- c$=MID$(scrap$,c#,2)
- EXIT IF c$=" ("
- c#=c#+2
- LOOP
- dellist$=dellist$+CHR$(38)+"60 DELETED: "+CHR$(38)+"50 "+MID$(scrap$,24,50)+"{200}"
- ENDIF
- IF count#>6 AND MID$(scrap$,1,1)=" "
- warlst$=config$(27)+"usr_warn.lst"
- DOS(3,warlst$)
- OPEN (warlst$,append)
- WRITE "{200}&60 &09 Bulletin: "+date$+" &50{200}{200}"+dellist$
- WRITE "If you know any one of this users, please remind them of that there"
- WRITE "user account is going to be terminated in a few days if the don't!"
- WRITE "call the BBS soon!!{200}"
- WRITE "/// USR WARNER by Martin Haggbom, Dataline System +46-(0)8-7782886 ///{200}{134}"
- CLOSE
- ok#=10
- ENDIF
- UNTIL ok#=10
- EXIT
-